package com.wsj.service;

import java.util.List;

import com.wsj.util.exception.BusinessException;
import com.wsj.util.page.PageResultSet;
import com.wsj.web.form.admin.ebbmail.EbbEmailManageForm;
import com.wsj.web.vo.homeSite.EbbEmail;

public interface IEbbEmailServ {

	
	
public void saveOrUpdate(EbbEmail ebbEmail) throws BusinessException;
	
	public void delete(EbbEmail ebbEmail) throws BusinessException;
	
	public EbbEmail loadById(Integer ebbEmailId) throws BusinessException;
	
	
	/**
	 * 查询条件：发送人类型、接收人类型、标题、接收人ID、发送人ID、
	 * 邮件类型（点对点发或群发）、从时间1、到时间2、是否阅读
	 * */
	public List<EbbEmail> loadList(Short sendType,Short reciverType,String title,Integer reciverId,
			Integer senderId,String mailType,String formDate,String toDate,Short haveRead) throws BusinessException;
	
	public PageResultSet loadPageResultSet(Short sendType,Short reciverType,String title,Integer reciverId,
			Integer senderId,String mailType,String formDate,String toDate,Short haveRead,Integer page,Integer pageSize)throws BusinessException;

	/******
	 * 搜索站内短信息
	 * @param ebbEmailManageForm
	 * @return
	 */
	public PageResultSet loadEbbEmailList(EbbEmailManageForm ebbEmailManageForm) throws BusinessException;


 
	/****
	 * 添加站内短信息
	 * @param ebbEmail
	 */
	public void addEbbEmail(EbbEmail ebbEmail) throws BusinessException;
	
}
